package org.example.servcie;

import org.example.entity.R;
import org.example.pojo.Dept;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

/**
 * @author TonySong
 * @date 2024/4/26 0026
 * @time 10:35
 */
@FeignClient(name = "dept-service")
public interface DeptFeignService {

    @GetMapping("/dept/list")
    public R findAll();
    @PostMapping("/dept/")
    public R save(@RequestBody Dept dept);
    @DeleteMapping("/dept/{id}")
    public boolean delete(@PathVariable("id") Long abc);

    @GetMapping("/dept/{id}")
    public  R findById(@PathVariable("id") Long id);


}
